<template>
  <tr>
    <td>{{ rowData.id }}</td>
    <td>{{ rowData.goods_name }}</td>
    <td>¥{{ rowData.goods_price.toFixed(2) }}</td>
    <td>
      <slot />
    </td>
    <td>
      <button>删除</button>
    </td>
  </tr>
</template>

<script>
export default {
  props: {
    rowData: Object,
  },
}
</script>

<style scoped>
td {
  border-right: 1px solid #aaa;
  border-bottom: 1px solid #aaa;
  padding: 8px;
}
</style>
